package com.linewell.system.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.validator.constraints.NotEmpty;
/**
 * 角色菜单类 对应数据库表：SYS_ROLE_MENU
 */
@Entity
@Table(name="SYS_ROLE_MENU")
@DynamicInsert(true)
@DynamicUpdate(true)
public class SysRoleMenu implements Serializable{

	private static final long serialVersionUID = 1L;
	private Integer menuId;   //菜单编号
	private Integer roleId;   //角色编号
	@Id
	@NotEmpty
	@Column(name = "MENU_ID")
	public Integer getMenuId() {
		return menuId;
	}
	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}

	@NotEmpty
	@Column(name = "ROLE_ID")
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	

}
